package com.zhijian.medical.dao.local;


import com.zhijian.medical.entity.po.ExamQuestion;
import com.zhijian.medical.entity.vo.request.ExamQuestionSearchVo;
import com.zhijian.medical.entity.vo.response.ExamQuestionVo;

import java.util.List;

public interface ExamQuestionMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据题库删除
     *
     * @param warehouseId
     * @return
     */
    int deleteByWarehouseId(Long warehouseId);

    int insert(ExamQuestion record);

    int insertSelective(ExamQuestion record);

    ExamQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExamQuestion record);

    int updateByPrimaryKey(ExamQuestion record);

    int count(ExamQuestionSearchVo examQuestionSearchVo);

    List<ExamQuestionVo> selectList(ExamQuestionSearchVo examQuestionSearchVo);

    ExamQuestionVo selectVoById(Long id);

    /**
     * 获得一个题库下全部的id集合，以英文逗号隔开
     *
     * @param warehouseId
     * @return
     */
    String selectIds(Long warehouseId);
}